﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace QDT.Web.Admin.Models
{
    public class NewLoanModel
    {

        public int ID { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 项目简称
        /// </summary>
        public string SubName { get; set; }

        /// <summary>
        /// 项目类型ID
        /// </summary>
        public int TypeId { get; set; }

        /// <summary>
        /// 担保机构ID
        /// </summary>
        public int AgencyId { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 还款方式
        /// </summary>
        public int RepaymentId { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [AllowHtml]
        public string Description { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsEffect { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 借款金额
        /// </summary>
        public decimal BorrowAmount { get; set; }

        /// <summary>
        /// 还款限期，当RepayTimeType为0的时候代表天数，当RepayTimeType为1的时候代表月数
        /// </summary>
        public int RepayTime { get; set; }

        /// <summary>
        /// 还款时间类型，0代表天，1代表月
        /// </summary>
        public int RepayTimeType { get; set; }

        /// <summary>
        /// 利率（利率单位为小数点后2位，如 12代表的是12% ，作为利率计算需要除以100）
        /// </summary>
        public double Rate { get; set; }

        /// <summary>
        ///  筹款期限（天）
        /// </summary>
        public int EndDate { get; set; }

        /// <summary>
        /// 结算日,0或-1表示不使用结算日
        /// </summary>
        public int SettleDay { get; set; }

        /// <summary>
        /// 担保范围
        /// </summary>
        public string Warrant { get; set; }

        /// <summary>
        /// 总借款额
        /// </summary>
        public string TotalBorrow { get; set; }

        /// <summary>
        /// 借款目的
        /// </summary>
        public string LoanPurpose { get; set; }

        /// <summary>
        /// 行业信息
        /// </summary>
        public string Industry { get; set; }

        /// <summary>
        /// 行业细节
        /// </summary>
        public string IndustryDetail { get; set; }

        /// <summary>
        /// 贷款信息
        /// </summary>
        [AllowHtml]
        public string LoanInfo { get; set; }

        /// <summary>
        /// 项目历程
        /// </summary>
        [AllowHtml]
        public string ProjectProcess { get; set; }

        /// <summary>
        /// 风险控制
        /// </summary>
        [AllowHtml]
        public string RiskControl { get; set; }

    }
}